/**
 * JungoMobileWeb
 * ApiDaoImpl.java
 * 
 * Copyright 2013 Teachizen
 * Written by cloudstick
 *	2013. 8. 8. first written.
 *
 * note:
 */
package com.jungo.web.dao.impl;

import org.mybatis.spring.support.SqlSessionDaoSupport;

import com.jungo.web.dao.ApiDao;

/**
 * @author cloudstick
 *
 */
public class ApiDaoImpl extends SqlSessionDaoSupport implements ApiDao {

	/* (non-Javadoc)
	 * @see com.jungo.web.dao.ApiDao#isUser(java.lang.String)
	 */
	@Override
	public boolean isUser(String deviceId) {
		Integer result = getSqlSession().selectOne("ApiDao.isUser", deviceId);
		if ( result == null || result.intValue() != 1 ) return false;
		return true;
	}

}
